<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>SyntaxVerifier</title>
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="SyntaxVerifier";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-all.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../mmj/lang/Sym.html" title="class in mmj.lang"><span class="strong">Prev Class</span></a></li>
<li><a href="../../mmj/lang/SystemLoader.html" title="interface in mmj.lang"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?mmj/lang/SyntaxVerifier.html" target="_top">Frames</a></li>
<li><a href="SyntaxVerifier.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">mmj.lang</div>
<h2 title="Interface SyntaxVerifier" class="title">Interface SyntaxVerifier</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Known Implementing Classes:</dt>
<dd><a href="../../mmj/verify/Grammar.html" title="class in mmj.verify">Grammar</a></dd>
</dl>
<hr>
<br>
<pre>public interface <span class="strong">SyntaxVerifier</span></pre>
<div class="block">Interface to Syntax Verification (aka "Grammar", "grammatical parsing" and
 "syntactic analysis").
 <p>
 Refer to mmj.verify.GrammarConstants.java for information about parse
 parameters and error messages.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../mmj/lang/SyntaxVerifier.html#initializeGrammar(mmj.lang.Messages, java.util.Map, java.util.Map)">initializeGrammar</a></strong>(<a href="../../mmj/lang/Messages.html" title="class in mmj.lang">Messages</a>&nbsp;messages,
                 java.util.Map&lt;java.lang.String,<a href="../../mmj/lang/Sym.html" title="class in mmj.lang">Sym</a>&gt;&nbsp;symTbl,
                 java.util.Map&lt;java.lang.String,<a href="../../mmj/lang/Stmt.html" title="class in mmj.lang">Stmt</a>&gt;&nbsp;stmtTbl)</code>
<div class="block">Initializes the grammar.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../mmj/lang/SyntaxVerifier.html#parseAllFormulas(mmj.lang.Messages, java.util.Map, java.util.Map)">parseAllFormulas</a></strong>(<a href="../../mmj/lang/Messages.html" title="class in mmj.lang">Messages</a>&nbsp;messages,
                java.util.Map&lt;java.lang.String,<a href="../../mmj/lang/Sym.html" title="class in mmj.lang">Sym</a>&gt;&nbsp;symTbl,
                java.util.Map&lt;java.lang.String,<a href="../../mmj/lang/Stmt.html" title="class in mmj.lang">Stmt</a>&gt;&nbsp;stmtTbl)</code>
<div class="block">Parse all Statement Formulas and update stmtTbl with results.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../mmj/lang/ParseTree.html" title="class in mmj.lang">ParseTree</a></code></td>
<td class="colLast"><code><strong><a href="../../mmj/lang/SyntaxVerifier.html#parseFormula(mmj.lang.Messages, java.util.Map, java.util.Map, mmj.lang.Formula, mmj.lang.VarHyp[], int, mmj.lang.Stmt)">parseFormula</a></strong>(<a href="../../mmj/lang/Messages.html" title="class in mmj.lang">Messages</a>&nbsp;messages,
            java.util.Map&lt;java.lang.String,<a href="../../mmj/lang/Sym.html" title="class in mmj.lang">Sym</a>&gt;&nbsp;symTbl,
            java.util.Map&lt;java.lang.String,<a href="../../mmj/lang/Stmt.html" title="class in mmj.lang">Stmt</a>&gt;&nbsp;stmtTbl,
            <a href="../../mmj/lang/Formula.html" title="class in mmj.lang">Formula</a>&nbsp;formula,
            <a href="../../mmj/lang/VarHyp.html" title="class in mmj.lang">VarHyp</a>[]&nbsp;varHypArray,
            int&nbsp;highestSeq,
            <a href="../../mmj/lang/Stmt.html" title="class in mmj.lang">Stmt</a>&nbsp;defaultStmtForRPN)</code>
<div class="block">Parse a single formula.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../mmj/lang/ParseTree.html" title="class in mmj.lang">ParseTree</a></code></td>
<td class="colLast"><code><strong><a href="../../mmj/lang/SyntaxVerifier.html#parseOneStmt(mmj.lang.Messages, java.util.Map, java.util.Map, mmj.lang.Stmt)">parseOneStmt</a></strong>(<a href="../../mmj/lang/Messages.html" title="class in mmj.lang">Messages</a>&nbsp;messages,
            java.util.Map&lt;java.lang.String,<a href="../../mmj/lang/Sym.html" title="class in mmj.lang">Sym</a>&gt;&nbsp;symTbl,
            java.util.Map&lt;java.lang.String,<a href="../../mmj/lang/Stmt.html" title="class in mmj.lang">Stmt</a>&gt;&nbsp;stmtTbl,
            <a href="../../mmj/lang/Stmt.html" title="class in mmj.lang">Stmt</a>&nbsp;stmt)</code>
<div class="block">Parse a single Statement.</div>
</td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="parseFormula(mmj.lang.Messages, java.util.Map, java.util.Map, mmj.lang.Formula, mmj.lang.VarHyp[], int, mmj.lang.Stmt)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parseFormula</h4>
<pre><a href="../../mmj/lang/ParseTree.html" title="class in mmj.lang">ParseTree</a>&nbsp;parseFormula(<a href="../../mmj/lang/Messages.html" title="class in mmj.lang">Messages</a>&nbsp;messages,
                     java.util.Map&lt;java.lang.String,<a href="../../mmj/lang/Sym.html" title="class in mmj.lang">Sym</a>&gt;&nbsp;symTbl,
                     java.util.Map&lt;java.lang.String,<a href="../../mmj/lang/Stmt.html" title="class in mmj.lang">Stmt</a>&gt;&nbsp;stmtTbl,
                     <a href="../../mmj/lang/Formula.html" title="class in mmj.lang">Formula</a>&nbsp;formula,
                     <a href="../../mmj/lang/VarHyp.html" title="class in mmj.lang">VarHyp</a>[]&nbsp;varHypArray,
                     int&nbsp;highestSeq,
                     <a href="../../mmj/lang/Stmt.html" title="class in mmj.lang">Stmt</a>&nbsp;defaultStmtForRPN)</pre>
<div class="block">Parse a single formula.
 <p>
 Note: access to symTbl and stmtTbl is required in case the grammar needs
 to be re-initialized.
 <p>
 Note: <b>highestSeq</b> is similar to the restriction in proof
 verification: a proof can only refer to previous statements. However,
 setting this to java.lang.Integer.MAX_VALUE says, parse this formula with
 the entire grammar -- which ought to result in the same parse, unless the
 grammar is ambiguous (new Grammar Rules should be "disjoint" from
 previous ones.)</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>messages</code> - Messages object for error/info messages.</dd><dd><code>symTbl</code> - Symbol Table (Map).</dd><dd><code>stmtTbl</code> - Statement Table (Map).</dd><dd><code>formula</code> - Formula to parse.</dd><dd><code>varHypArray</code> - VarHyp's for the Formula's Var's.</dd><dd><code>highestSeq</code> - Max MObj.seq that can be referenced.</dd><dd><code>defaultStmtForRPN</code> - Default Stmt for output RPN/message.</dd>
<dt><span class="strong">Returns:</span></dt><dd>Array of Stmt containing RPN.</dd></dl>
</li>
</ul>
<a name="parseOneStmt(mmj.lang.Messages, java.util.Map, java.util.Map, mmj.lang.Stmt)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parseOneStmt</h4>
<pre><a href="../../mmj/lang/ParseTree.html" title="class in mmj.lang">ParseTree</a>&nbsp;parseOneStmt(<a href="../../mmj/lang/Messages.html" title="class in mmj.lang">Messages</a>&nbsp;messages,
                     java.util.Map&lt;java.lang.String,<a href="../../mmj/lang/Sym.html" title="class in mmj.lang">Sym</a>&gt;&nbsp;symTbl,
                     java.util.Map&lt;java.lang.String,<a href="../../mmj/lang/Stmt.html" title="class in mmj.lang">Stmt</a>&gt;&nbsp;stmtTbl,
                     <a href="../../mmj/lang/Stmt.html" title="class in mmj.lang">Stmt</a>&nbsp;stmt)</pre>
<div class="block">Parse a single Statement.
 <p>
 If used with VarHyp or SyntaxAxiom, simply returns stmt.getExprRPN().
 <p>
 Note: access to symTbl and stmtTbl is required in case the grammar needs
 to be re-initialized.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>messages</code> - Messages object for error/info messages.</dd><dd><code>symTbl</code> - Symbol Table (Map).</dd><dd><code>stmtTbl</code> - Statement Table (Map).</dd><dd><code>stmt</code> - Stmt in stmtTbl to parse.</dd>
<dt><span class="strong">Returns:</span></dt><dd>Array of Stmt containing RPN.</dd></dl>
</li>
</ul>
<a name="parseAllFormulas(mmj.lang.Messages, java.util.Map, java.util.Map)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parseAllFormulas</h4>
<pre>void&nbsp;parseAllFormulas(<a href="../../mmj/lang/Messages.html" title="class in mmj.lang">Messages</a>&nbsp;messages,
                    java.util.Map&lt;java.lang.String,<a href="../../mmj/lang/Sym.html" title="class in mmj.lang">Sym</a>&gt;&nbsp;symTbl,
                    java.util.Map&lt;java.lang.String,<a href="../../mmj/lang/Stmt.html" title="class in mmj.lang">Stmt</a>&gt;&nbsp;stmtTbl)</pre>
<div class="block">Parse all Statement Formulas and update stmtTbl with results.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>messages</code> - Messages object for error/info messages.</dd><dd><code>symTbl</code> - Symbol Table (Map).</dd><dd><code>stmtTbl</code> - Statement Table (Map).</dd></dl>
</li>
</ul>
<a name="initializeGrammar(mmj.lang.Messages, java.util.Map, java.util.Map)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>initializeGrammar</h4>
<pre>boolean&nbsp;initializeGrammar(<a href="../../mmj/lang/Messages.html" title="class in mmj.lang">Messages</a>&nbsp;messages,
                        java.util.Map&lt;java.lang.String,<a href="../../mmj/lang/Sym.html" title="class in mmj.lang">Sym</a>&gt;&nbsp;symTbl,
                        java.util.Map&lt;java.lang.String,<a href="../../mmj/lang/Stmt.html" title="class in mmj.lang">Stmt</a>&gt;&nbsp;stmtTbl)</pre>
<div class="block">Initializes the grammar.
 <p>
 Normally this is handled automatically. It initializes "the grammar" but
 does not parse every Stmt in stmtTbl.
 <p>
 The intended use of this function would be to initialize the grammar
 without parsing every statement (parsing every statement in set.mm
 requires 8ish seconds!)</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>messages</code> - Messages object for error/info messages.</dd><dd><code>symTbl</code> - Symbol Table (Map).</dd><dd><code>stmtTbl</code> - Statement Table (Map).</dd>
<dt><span class="strong">Returns:</span></dt><dd>true if grammar initializes successfully, else false.</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-all.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../mmj/lang/Sym.html" title="class in mmj.lang"><span class="strong">Prev Class</span></a></li>
<li><a href="../../mmj/lang/SystemLoader.html" title="interface in mmj.lang"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?mmj/lang/SyntaxVerifier.html" target="_top">Frames</a></li>
<li><a href="SyntaxVerifier.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
